(function(){
	$.extend({
		/*长整形数字转化为日期格式*/
		getDate:function(str){
			 function getzf(num){  
		            if(parseInt(num) < 10){  
		                num = '0'+num;  
		            }  
		            return num;  
			 }
			
			 var oDate= str==undefined?new Date():new Date(str);
			 var oYear = oDate.getFullYear();
	         var oMonth = oDate.getMonth()+1;  
	         var oDay = oDate.getDate();
	         var oTime = getzf(oYear)+'-'+getzf(oMonth) +'-'+ getzf(oDay);//最后拼接时间  
	         return oTime;  
		}

		
	})
	
})(jQuery)